import java.util.Arrays;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int []arr={1,2,34,3,4,5,7,23,12};
        boolean flag=single(arr);
        System.out.println(flag);
    }
public static boolean single(int[]arr){
    for (int i = 0; i <arr.length-2 ; i++) {
        if(arr[i]%2==1&&arr[i+1]%2==1&&arr[i+2]%2==1){
            return true;
        }
    }
    return false;
}
    public static void main6(String[] args) {
        int []array=new int[7];
        Scanner in=new Scanner(System.in);
        for(int i=0;i<array.length;i++){
            array[i]=in.nextInt();
        }
        finds(array);
    }
    public static void finds(int[]array){
        int []brray=new int[10];
        for(int i=0;i<array.length;i++){
            brray[array[i]]=brray[array[i]]+1;
        }
        int max=0;
        for(int i=0;i<=9;i++){
           //System.out.println(brray[i]);
            if(brray[i]>array.length/2){
                if(brray[i]>max){
                    max=i;
                }
            }
        }
        System.out.println(max);
    }

    public static void main5(String[] args) {
        int []array=new int[5];
        Scanner in=new Scanner(System.in);
        for(int i=0;i<array.length;i++){
            array[i]=in.nextInt();
        }
        int ret=find(array);
        System.out.println(ret);
    }
public static int find(int[]array){
        int sum=0;
        for(int i=0;i<array.length;i++){
            sum=sum^ array[i];
        }
        return sum;
}

    public static void main4(String[] args) {
        int []nums={2,7,11,15};
        int target=9;
        found(nums,target);
    }
public static void found(int []nums,int t){
    for (int i = 0; i <nums.length-1 ; i++) {
        for(int j=i+1;j<nums.length;j++){
            if(nums[i]+nums[j]==t){
                System.out.println("["+i+","+j+"]");
                return;
            }
        }
    }
}
    public static void main3(String[] args) {
        int []array={1,2,3,4,5,6};
        for (int i = 0; i <array.length ; i++) {
            if(array[i]%2==0) {
                for (int j = array.length-1; j >= i; j--) {
                    if (array[j] % 2 == 1) {
                        int temp = array[i];
                        array[i] = array[j];
                        array[j] = temp;
                        break;
                    }
                }
            }
        }
        System.out.println(Arrays.toString(array));
    }
    public static void main2(String[] args) {
        int []array={1,2,3};
        transform(array);
        System.out.println(Arrays.toString(array));
    }
    public static void transform(int[]array){
        for (int i = 0; i < array.length ; i++) {
            array[i]=array[i]*2;
        }
    }

}
